package com.chuanjiabao.wisdom.util.dialog;

import android.content.Context;
import android.databinding.DataBindingUtil;
import android.view.LayoutInflater;
import android.view.View;

import com.chuanjiabao.wisdom.R;
import com.chuanjiabao.wisdom.databinding.DialogCreateSecretAlbumBinding;
import com.chuanjiabao.wisdom.listener.OnBHClickListener;

public class CreateSecretAlbumDialog extends BaseDialog {

    Context context;
    DialogCreateSecretAlbumBinding binding ;
    OnBHClickListener onBHClickListener;

    public CreateSecretAlbumDialog(Context context) {
        super(context);
        this.context = context;
        binding = DataBindingUtil.inflate(
                LayoutInflater.from(context),
                R.layout.dialog_create_secret_album,
                null,
                false
        );

        binding.setDialog(this);
        setContentView(binding.getRoot());
    }

    public void setOnBHClickListener(OnBHClickListener onBHClickListener) {
        this.onBHClickListener = onBHClickListener;
    }

    //创建私密相册
    public void noPoint(View view){
        if (onBHClickListener != null) {
            onBHClickListener.onCloseClick();
        }
        dismiss();
    }
}


